|
ARRAY INSERT AT ELEMENT
This command will insert a blank item at the position specified in the array list.
ARRAY INSERT AT ELEMENT Array Name(0), Index
Array Name(0
Integer
The name of the array followed by a pair of brackets ( ). You can also insert a value of zero, i.e. arrayname(0)
Index
Integer
This value is an integer number such as 1.
This command does not return a value.
When a blank item is inserted into a list, all the elements thereafter are shuffled one space down to make room for the new item. Lists are an expandable and shrinkable form of array.
DIM array(0)
FOR T=1 TO 5
ARRAY INSERT AT ELEMENT array(),0
NEXT T
PRINT ARRAY COUNT(array())
WAIT KEY
CORE Commands Menu
Index
|